package
{
	import flash.net.NetConnection;
	import flash.system.Security;
	import flash.net.*;

	public class RemotingConnection extends NetConnection
	{
		public function RemotingConnection(gatewayUrl:String)
		{
			Security.allowDomain(gatewayUrl);
			this.objectEncoding = ObjectEncoding.AMF3;
			this.connect(gatewayUrl);			
		}
	}
}